﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.Json;

namespace corpus_platform.Services
{
    public class ConfigManager
    {
        public ConfigManager()
        {
            IConfiguration config = new ConfigurationBuilder()
                .AddJsonFile("config.json")
                .AddEnvironmentVariables()
                .Build();
            OntologyDataPath = Path.GetFullPath(config["OntologyDataPath"]);
            FrameDataPath = Path.GetFullPath(config["FrameDataPath"]);
            AnnotationExchangeDir = Path.GetFullPath(config["AnnotationExchangeDir"]);
        }
        public string OntologyDataPath { get; set; }
        public string FrameDataPath { get; set; }
        public string AnnotationExchangeDir { get; set; }
    }

}
